﻿using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AngleExpress.web
{
    class ChromeWebOpener:WebOpener
    {
        public ChromeWebOpener():base("chromedriver")
        {
           
        }
        protected override IWebDriver initDriver()
        {
            ChromeDriverService driverService = ChromeDriverService.CreateDefaultService();
            driverService.HideCommandPromptWindow = true;
            ChromeOptions options = new ChromeOptions();
            options.AddArgument("disable-infobars");
            return new OpenQA.Selenium.Chrome.ChromeDriver(driverService, options);
        }
    }
}
